﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PM.Web.Modules
{
    public partial class WebSite_Left : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bindData();
            }
        }

        private void bindData()
        {
            DataAccess.PmData dal = new DataAccess.PmData();
            this.repIntroduce.DataSource = dal.GetWebSiteIntroduce(1, null);
            this.repIntroduce.DataBind();

            this.repNewsClass.DataSource = dal.GetWebSiteNewsClass(1, null);
            this.repNewsClass.DataBind();
        }
    }
}